
package apollo.generator.modules.service;

import apollo.generator.common.exception.CustomException;
import com.baomidou.mybatisplus.extension.service.IService;
import apollo.generator.modules.entity.SysUserTokenEntity;

import java.util.HashMap;

/**
 * 用户Token
 */
public interface SysUserTokenService extends IService<SysUserTokenEntity> {

	/**
	 * 生成token
	 * @param userId  用户ID
	 */
	HashMap<Object, Object> createToken(long userId) throws CustomException;

	/**
	 * 退出，修改token值
	 * @param userId  用户ID
	 */
	void logout(long userId) throws CustomException;

}
